package com.mcml.space;

import java.util.Random;

import org.bukkit.entity.LivingEntity;

public class Utils {
    public static int randomNumber(int end) {
        Random random = new Random();
        int rn = random.nextInt(end + 1);
        return rn;
    }

    public static void Heal(LivingEntity player, double count) {
        double willbehealthy = player.getHealth() + count;
        if (willbehealthy > player.getMaxHealth()) {
            player.setHealth(player.getMaxHealth());
        } else {
            player.setHealth(willbehealthy);
        }

    }
}
